package com.idp.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.idp.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 角色实体类
 * @author king
 */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName("sys_role")
public class SysRoleEntity extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;
	
	/** 主键ID */
	@TableId(value = "id", type = IdType.ASSIGN_UUID)
	private String id;
	/** 角色编码 */
	@TableField("role_code")
	private String roleCode;
	/** 角色名称 */
	@TableField("role_name")
	private String roleName;
	/** 备注 */
	@TableField("description")
	private String description;

}
